From 72329fb20c3bc7703590b85bd0c42ea32e7cfe61 Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Wed, 29 Mar 2023 17:02:57 +0700 Subject: SEO --- src/pages/shop/brands/[slug].jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/pages/shop/brands/[slug].jsx') diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx index 33f81fa2..9c5193ad 100644 --- a/src/pages/shop/brands/[slug].jsx +++ b/src/pages/shop/brands/[slug].jsx @@ -2,6 +2,7 @@ import dynamic from 'next/dynamic' import { getIdFromSlug, getNameFromSlug } from '@/core/utils/slug' import { useRouter } from 'next/router' import _ from 'lodash' +import Seo from '@/core/components/Seo' const BasicLayout = dynamic(() => import('@/core/components/layouts/BasicLayout')) const ProductSearch = dynamic(() => import('@/lib/product/components/ProductSearch')) @@ -10,8 +11,22 @@ const Brand = dynamic(() => import('@/lib/brand/components/Brand')) export default function BrandDetail() { const router = useRouter() const { slug = '' } = router.query + + const brandName = getNameFromSlug(slug) return ( + + {!_.isEmpty(router.query) && (